package com.wzdigit.wms.basic.domain.oqc;

import com.baomidou.mybatisplus.annotation.*;
import com.wzdigit.framework.orm.model.BasicDomain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author Any
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("QMS_OQC")
@KeySequence(value = "QMS_OQC_SEQ", clazz = Integer.class)
public class QmsOqc extends BasicDomain {
    private static final long serialVersionUID = 1L;
    /***/
    @ApiModelProperty(value = "")
    @TableId(value = "OQC_ID", type = IdType.INPUT)
    private Integer oqcId;
    /**
     * 检验单号
     */
    @ApiModelProperty(value = "检验单号")
    @TableField(value = "OQC")
    private String oqc;
    /**
     * 检验单状态
     */
    @ApiModelProperty(value = "检验单状态")
    @TableField(value = "STATUS")
    private Integer status;
    /**
     * 工单ID
     */
    @ApiModelProperty(value = "工单ID")
    @TableField(value = "WORK_ORDER_ID")
    private Integer workOrderId;
    /**
     * 工单号
     */
    @ApiModelProperty(value = "工单号")
    @TableField(value = "WORK_ORDER_CODE")
    private String workOrderCode;
    /**
     * 工单生产数量
     */
    @ApiModelProperty(value = "工单生产数量")
    @TableField(value = "WO_QTY")
    private BigDecimal woQty;
    /**
     * 产品ID
     */
    @ApiModelProperty(value = "产品ID")
    @TableField(value = "PRODUCT_ID")
    private Integer productId;
    /**
     * 产品编码
     */
    @ApiModelProperty(value = "产品编码")
    @TableField(value = "PRODUCT_CODE")
    private String productCode;
    /**
     * 车间ID
     */
    @ApiModelProperty(value = "车间ID")
    @TableField(value = "WORK_SHOP_ID")
    private Integer workShopId;
    /**
     * 车间编码
     */
    @ApiModelProperty(value = "车间编码")
    @TableField(value = "WORKS_HOP_CODE")
    private String worksHopCode;
    /**
     * 线体ID
     */
    @ApiModelProperty(value = "线体ID")
    @TableField(value = "LINE_ID")
    private Integer lineId;
    /**
     * 线体编码
     */
    @ApiModelProperty(value = "线体编码")
    @TableField(value = "LINE_CODE")
    private String lineCode;
    /**
     * 班次ID
     */
    @ApiModelProperty(value = "班次ID")
    @TableField(value = "WORK_SHIFT_ID")
    private Integer workShiftId;
    /**
     * 班次编码
     */
    @ApiModelProperty(value = "班次编码")
    @TableField(value = "WORK_SHIFT_CODE")
    private String workShiftCode;
    /**
     * 检验方式ID
     */
    @ApiModelProperty(value = "检验方式ID")
    @TableField(value = "INSP_MODE_ID")
    private Integer inspModeId;
    /**
     * 检验方式编码
     */
    @ApiModelProperty(value = "检验方式编码")
    @TableField(value = "INSP_MODE_CODE")
    private String inspModeCode;
    /**
     * 送检方式
     */
    @ApiModelProperty(value = "送检方式")
    @TableField(value = "SUBMIT_INSP_MODE")
    private Integer submitInspMode;
    /**
     * 送检产品数
     */
    @ApiModelProperty(value = "送检产品数")
    @TableField(value = "SUBMIT_INSP_QTY")
    private BigDecimal submitInspQty;
    /**
     * 检验产品数
     */
    @ApiModelProperty(value = "检验产品数")
    @TableField(value = "INSP_QTY")
    private BigDecimal inspQty;
    /**
     * 不合格产品数
     */
    @ApiModelProperty(value = "不合格产品数")
    @TableField(value = "FAIL_QTY")
    private BigDecimal failQty;
    /**
     * 产品名称
     */
    @ApiModelProperty(value = "产品名称")
    @TableField(value = "PRODUCT_NAME")
    private String productName;
    /**
     * 工单数量
     */
    @ApiModelProperty(value = "工单数量")
    @TableField(value = "WORK_ORDER_COUNT")
    private BigDecimal workOrderCount;
    /**
     * 检验类型
     */
    @ApiModelProperty(value = "检验类型")
    @TableField(value = "INSP_STD_TYPE")
    private Integer inspStdType;
    /**
     * 是否主管确认
     */
    @ApiModelProperty(value = "是否主管确认")
    @TableField(value = "IS_MANAGER_CONFIRM")
    private Integer isManagerConfirm;
    /**
     * 是否二次判检
     */
    @ApiModelProperty(value = "是否二次判检")
    @TableField(value = "IS_SECOND_CHECK")
    private Integer isSecondCheck;
    /**
     * 检验表单ID
     */
    @ApiModelProperty(value = "检验表单ID")
    @TableField(value = "INSPITEM_TABLE_ID")
    private Integer inspitemTableId;
    /**
     * 检验开始时间
     */
    @ApiModelProperty(value = "检验开始时间")
    @TableField(value = "INSP_BEGIN_TIME")
    private String inspBeginTime;
    /**
     * 检验结束时间
     */
    @ApiModelProperty(value = "检验结束时间")
    @TableField(value = "INSP_END_TIME")
    private String inspEndTime;
    /**
     * 联机工单号
     */
    @ApiModelProperty(value = "联机工单号")
    @TableField(value = "ONLINE_WORKORDER_NO")
    private String onlineWorkorderNo;
    /**
     * 是否免检
     */
    @ApiModelProperty(value = "是否免检")
    @TableField(value = "IS_WITHOUT_CHECK")
    private Integer isWithoutCheck;
    /**
     * 报检状态
     */
    @ApiModelProperty(value = "报检状态")
    @TableField(value = "INSPECTION_STATUS")
    private Integer inspectionStatus;
    /**
     * 报检时间
     */
    @ApiModelProperty(value = "报检时间")
    @TableField(value = "INSPECTION_TIME")
//    private String inspectionTime;
    private Date inspectionTime;
    /**
     * 报检人
     */
    @ApiModelProperty(value = "报检人")
    @TableField(value = "INSPECTION_PERSON")
    private String inspectionPerson;
    /**
     * SAP单号
     */
    @ApiModelProperty(value = "SAP单号")
    @TableField(value = "SAP_ORDER_NO")
    private String sapOrderNo;
    /**
     * 报检备注信息
     */
    @ApiModelProperty(value = "报检备注信息")
    @TableField(value = "INSPECTION_REMARK")
    private String inspectionRemark;
    /**
     * 向SAP报检返回的生产订单
     */
    @ApiModelProperty(value = "向SAP报检返回的生产订单")
    @TableField(value = "SAP_AUFNR")
    private String sapAufnr;
    /**
     * 向SAP报检返回的返回值:S/E
     */
    @ApiModelProperty(value = "向SAP报检返回的返回值:S/E")
    @TableField(value = "SAP_RESULT")
    private String sapResult;
    /**
     * 向SAP报检返回的消息
     */
    @ApiModelProperty(value = "向SAP报检返回的消息")
    @TableField(value = "SAP_MSG")
    private String sapMsg;
    /**
     * 向SAP报检返回的入库凭证号
     */
    @ApiModelProperty(value = "向SAP报检返回的入库凭证号")
    @TableField(value = "SAP_MBLNR1")
    private String sapMblnr1;
    /**
     * 向SAP报检返回的调拨凭证号
     */
    @ApiModelProperty(value = "向SAP报检返回的调拨凭证号")
    @TableField(value = "SAP_MBLNR2")
    private String sapMblnr2;
    /**
     * 拉取下线完工的工厂/组织号
     */
    @ApiModelProperty(value = "拉取下线完工的工厂/组织号")
    @TableField(value = "SAP_WERKS")
    private String sapWerks;
    /**
     * 上次检验单的状态
     */
    @ApiModelProperty(value = "上次检验单的状态")
    @TableField(value = "LAST_STATUS")
    private Integer lastStatus;
    /**
     * 销售订单
     */
    @ApiModelProperty(value = "销售订单")
    @TableField(value = "SO")
    private String so;
}
